package com.zys.sac.starter.config;

import org.springframework.context.annotation.Conditional;

import java.lang.annotation.*;

/**
 * @author junekzhong
 * @date 2023/12/13 15:35
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD })
@Documented
@Conditional(ConditionalOnAnyPropertyMatcher.class)
public @interface ConditionalOnAnyProperty {

    String prefix() default "";

    String[] name() default {};

    String havingValue() default "";

    boolean matchIfMissing() default false;
}
